package com.vhall.component.framework.common.utils;

import lombok.extern.slf4j.Slf4j;

@Slf4j
public class LogUtils {

    private LogUtils() {
        throw new IllegalStateException("Utility class");
    }

    public static void error(String string, Exception e) {
        log.error(string, e);
    }

    public static void info(String msg) {
        log.info(msg);
    }

    public static void error(String message, Throwable throwable) {
        log.error(message, throwable);
    }

    public static boolean isDebugEnabled() {
        return log.isDebugEnabled();
    }

    public static boolean isInfoEnabled() {
        return log.isInfoEnabled();
    }
}
